import { IllnessTime } from '@/enums'
import { timeOptions, flagOptions } from '@/services/constants'

export const getIllnessTimeText = (illnessTime: IllnessTime) =>
  timeOptions.find((item) => item.value === illnessTime)?.label

export const getConsultFlagText = (consultFlag: 0 | 1) =>
  flagOptions.find((item) => item.value === consultFlag)?.label
